<div class="ui-grid-col-12">
    <p-autoComplete [suggestions]="suggestions" (completeMethod)="search($event)" field="unitName" placeholder="机构名称"
        [minLength]="1" [(ngModel)]="suggestion" [delay]="500" (onSelect)="selectSuggestion()"
        [style]="{'margin':'10px 15px 0px 10px', 'width':'93%'}" [inputStyle]="{'width':'100%'}">
    </p-autoComplete>
</div>

<p-tree [value]="units" [loading]="loading" selectionMode="checkbox" [(selection)]="checkedUnits"
    (onNodeExpand)="unitNodeExpand($event)" emptyMessage="无数据"
    [style]="{'height': 'calc(100% - 50px)','width':'100%','border-style':'none','padding':'0'}">
</p-tree>